package com.qingcheng.service.system;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.system.Resource;
import com.qingcheng.pojo.system.Role;
import com.qingcheng.pojo.system.RoleResourceResult;

import java.util.*;

/**
 * resource业务逻辑层
 */
public interface ResourceService {

    public List<String> findResourcesByLoginName(String loginName);//查询当前登录用户权限

    public List<Resource> findAll();


    public PageResult<Resource> findPage(int page, int size);


    public List<Resource> findList(Map<String, Object> searchMap);

    public List<Resource> findList(Role role);//根据角色查询权限


    public PageResult<Resource> findPage(Map<String, Object> searchMap, int page, int size);


    public Resource findById(Integer id);

    public void add(RoleResourceResult roleResourceResult);//添加角色权限


    public void update(Resource resource);


    public void delete(Integer id);

}
